#include <ros/ros.h>
#include <study/temp.h>

int main(int argc, char **argv) noexcept {
    ros::init(argc, argv, "publisher");
    ros::NodeHandle node_handle;
    ros::Publisher publisher = node_handle.advertise<study::temp>("topic", 10);
    ros::Rate loop_rate(10);

    while (ros::ok()) {
        study::temp msg;
        msg.name = "hhhh";
        msg.age = 1.0;
        publisher.publish(msg);
        ROS_INFO("Publishing");
        loop_rate.sleep();
    }

    return 0;
}
